package com.lky.marshallmall.order.feign;

import com.lky.common.utils.R;
import com.lky.marshallmall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/6/15 15:42
 */
@FeignClient("mall-ware")
public interface WmsFeignService {

    @PostMapping("ware/waresku/hasStock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/waresku/lock/order")
    public R orderLockStock(@RequestBody WareSkuLockVo vo);
}
